package com.sinosoft.emplmis.application.web.dto;

import com.sinosoft.framework.dict.domain.DictCommonEntity;
import com.sinosoft.framework.core.common.utils.ObjectUtil;
/**
 * 通用字典明细传输对象
 * @author Sun
 *
 */
public class DictCommonData implements java.io.Serializable {

	/**
	 * 默认序列号
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;

	private String code;

	private String name;

	private Integer sort;

	private String bak;

	private String parentCode;

	private String tableName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getBak() {
		return bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	/**
	 * 数据转换
	 * 
	 * @param dictCommonData
	 * @param dictCommonEntity
	 */
	public void toDictCommonData(DictCommonData dictCommonData,
			DictCommonEntity dictCommonEntity) {
		try {
			ObjectUtil.oldToNew(dictCommonData, dictCommonEntity,
					"serialVersionUID");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
